﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ElectronicJournal.Account.AuthorAccount
{
    public partial class AuthorSite : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int PublicationsWaitingForPaymentCount = new DB.DbPublications().
                GetPublicationsWaitingForPaymentCount(System.Web.Security.Membership.GetUser().ProviderUserKey.ToString());
            if (PublicationsWaitingForPaymentCount == 0)
            {
                //NavigationMenu.Items[2].Text = "Публикации, ждущие оплаты";
            }
            else
            {
                NavigationMenu.Items[2].Text = String.Format("Публикации, ждущие оплаты (+{0})", PublicationsWaitingForPaymentCount);
            }

        }
    }
}